package arina.university.view;


import arina.university.model.University;

import java.util.Collection;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 21.11.13
 * Time: 17:20
 * To change this template use File | Settings | File Templates.
 */


public class UniversityView {
    public void getUniversityInfo(University university) {
        System.out.println(university.getName());
        System.out.println("Group list:");
        new GroupView().getGroupsInfo(university.getGroups());
    }

    public void getUniversitiesInfo(Collection<University> universities) {
        for(University university:universities){
            getUniversityInfo(university);
        }
    }
}
